<?php

namespace Database\Factories;

use App\Models\Lesson;
use Illuminate\Database\Eloquent\Factories\Factory;

class VideoFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            //
            'title' => $this->faker->sentence(),
            'lesson_id' => Lesson::inRandomOrder()->first()->id,
            'path' => 'https://houdunren-1307803512.cos.ap-shanghai.myqcloud.com/video%2Ff740f2140d1ebd66c196b9d5fafb4759.mp4',
        ];
    }
}
